import Vue from 'vue'
import Router from 'vue-router'
import homeRoutes from './home'
// import settingRoutes from './setting'

// import questionnaireRoutes from './questionnaire' // 满意度调查
// import queryOnline from './queryOnline'  // 在线问诊
// import medicalAgain from './medicalAgain' // 复诊配药
// import queryHistory from './queryHistory' // 在线问诊记录
// import orderHistory from './orderHistory' // 购药记录
// import medicalHistory from './medicalHistory' // 复诊配药记录
// import aboutRoutes from './about' // 医院介绍
// import mainFn from './mainFn'
// import drugReminder from './drugReminder' // 用药提醒
// import medicalRecord from './medicalRecord'                  // 病例复印


Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    ...homeRoutes,
    // ...settingRoutes,
    // ...aboutRoutes,
    // ...questionnaireRoutes,
    // ...queryOnline,
    // ...medicalAgain,
    // ...queryHistory,
    // ...medicalHistory,
    // ...orderHistory,
    // ...mainFn,
    // ...drugReminder,
    // ...medicalRecord,
    {
    // 404 page
      path: '*',
      component: resolve => require(['../components/NotFound'], resolve)
    }
  ]
})
